<template>
  <VLeaveContent :type="type"></VLeaveContent>
</template>
<script setup lang="ts">
import { watch } from 'vue'
import VLeaveContent from './LeaveContent.vue'

import { ref } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()
const type = ref()
watch(
  () => route,
  async () => {
    if (route.path == '/OA/Leave/LeaveAdd') {
      type.value = route.query.type
    }
  },
  { deep: true, immediate: true }
)
</script>
<style scoped lang="scss"></style>
